<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>数字对称显示</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type="text/javascript">
    var n = 8;
    for(var i=n; i>0; i--) {
        for(var j=1; j<=i; j++) {
            document.write(i);
        }
        document.write('<br />');
    }
    for(var k=2; k<=n; k++) {
        for(var t=1; t<=k; t++) {
            document.write(k);
        }
        document.write('<br />');
    }
</script>

<style type="text/css">
</style>
</head>
    <body>
    </body>
</html>